
// 标签消岐
import { baseUrl, doRequestPost } from '@/utils/request'


// 获取规则列表   
export function getRuleList(query) {
    return doRequestPost(baseUrl + 'news/analysis/disambiguation/listRule' + '?time=' + (+new Date()), query)
}

// 获取消岐规则列表
export function getLabelDissambiguationList(query) {
    return doRequestPost(baseUrl + 'news/analysis/disambiguation/list' + '?time=' + (+new Date()), query)
}

// 启动或者关闭标签状态
export function startLabelDissambiguation(query) {
    return doRequestPost(baseUrl + 'news/analysis/disambiguation/updateState' + '?time=' + (+new Date()), query)
}

// 批量删除标签
export function delLabelDissambiguationList(query) {
    return doRequestPost(baseUrl + 'news/analysis/disambiguation/del' + '?time=' + (+new Date()), query)
}
// 保存标签
export function saveLabelDissambiguationForm(query) {
    return doRequestPost(baseUrl + 'news/analysis/disambiguation/add' + '?time=' + (+new Date()), query)
}

//更新标签
export function updateLabelDissambiguationForm(query) {
    return doRequestPost(baseUrl + 'news/analysis/disambiguation/update' + '?time=' + (+new Date()), query)
}